package com.otitan.la.forest.industry.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 审核记录
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-21 10:52:03
 */
@Data
@TableName("\"BSS_AUDIT_RECORDS\"")
@ApiModel("审核记录实体")
public class AuditRecordsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
    * 主键id
    */
    @ApiModelProperty(value = "主键id", required = false)
    @TableId("\"ID\"")
    private String id;

    /**
    * 业务id
    */
    @ApiModelProperty(value = "业务id", required = true)
    @NotEmpty(message = "业务id不能为空")
    @TableField("\"DATA_ID\"")
    private String dataId;

    /**
    * 处理意见
    */
    @ApiModelProperty(value = "处理意见", required = false)
    @Length(max = 85, message = "处理意见不能超过 85 个字符")
    @TableField("\"OPINION\"")
    private String opinion;

    /**
    * 状态
    */
    @ApiModelProperty(value = "状态", required = true)
    @NotEmpty(message = "状态不能为空")
    @TableField("\"STATUS\"")
    private String status;

    /**
    * 是否删除
    */
    @ApiModelProperty(value = "是否删除", required = false)
    @TableField(value = "\"IS_DELETE\"", fill = FieldFill.INSERT)
    @TableLogic  //逻辑删除注解
    @JsonIgnore  //忽略
    private Integer isDelete;

    /**
    * 创建用户
    */
    @ApiModelProperty(value = "创建用户", required = false)
    @TableField(value = "\"CREATE_USER\"", fill = FieldFill.INSERT)
    private String createUser;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField(value = "\"CREATE_DATE\"", fill = FieldFill.INSERT)
    private Date createDate;

    /**
    * 编辑用户
    */
    @ApiModelProperty(value = "编辑用户", required = false)
    @TableField(value = "\"UPDATE_USER\"", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    /**
    * 编辑时间
    */
    @ApiModelProperty(value = "编辑时间", required = false)
    @TableField(value = "\"UPDATE_DATE\"", fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;


}
